import {request} from 'umi';
import {getApiPrefix} from "@/assets/utils/utils";
import {modulesUrl} from "@/assets/constant/modulesUrl";
import {DemandDetails} from "@/pages/demand/DemandList/data";

/**
 * 获取各类型数量统计
 * @param id
 */
export async function statisticsByType(params?: DemandDetails) {
  return request(getApiPrefix(modulesUrl.demandStatistics) + "/type", {
    params
  });
}


